Fixed condition to check if language is known to ime in when ime is initialized with a subset of languages