Fixes bug where reverse proxy caches could cache the language preference callback incorrectly. [#2219737]
Fixes compatibility with Language Switcher Dropdown 7.x-2.x. [#2219767]