Fix EZP-23234: Language Switcher using sub-requests throws an exception in preview

> https://jira.ez.no/browse/EZP-23234

Alternative approach to #950 (already merged) which should fix the leftovers.
Tests have been updated.