Fixes #19763 - LocaleMiddleware should check for supported languages in ...

...settings.LANGUAGE_CODE