Admin can potentially set no available locale for the portal and for the site from Control Panel (this is obviouslly something that it's not allowed and that we should forbid from the UI).
Steps to reproduce the issue:
1. Go to Control Panel
3. Portal Settings
4. Display Settings
5. Move all the languages from Current languages to Available Languages