MDL-40699-Language-Changes-During-Logout

This fixes an issue where the user interface language changes unexpectedly when logging out even though a specific language was specified using the "lang" parameter in the URL.