Why the path is null in url()?

The code:

{{ url('theme://images/logo_'~grav.language.getActive~'.svg') }}" />

Gives NULL.

Debug for: logo_’~grav.language.getActive~’.svg’ Gives correct logo_en.svg

Any ideas?

Solved. It gives NULL if the file is missing