Fix l10n so getTranslationLanguage always returns a string

Corrects #701