Fixed a bug in the language menu.

If `current_lang` is `None`, then `current_lang['code']` fails of course.