make languageId() return something even if a language name like "language (territory)" is given

Resolves: rhbz#986659 (see: https://bugzilla.redhat.com/show_bug.cgi?id=986659)