Fix activating a custom translation in special circumstances

An Exception occurs when trying to activate a language that isn't a core translation, the base-code of which also isn't a core translation, and which shares a base-code with a different language.

(For example, cn-tw and cn-hk)