[BUGFIX] Invalid resource locator produced on invalid localization

Fixes #192
__Tasks:__

- [x] test coverage
- [ ] gather feedback for my changes

__Informations:__

| Q             | A
| ------------- | ---
| Tests pass?   | yes
| BC Breaks     | no
| Doc           |