This prevents it considering languages with a territory attached as non-supported (like fr_FR) and checks it without a territory as a fallback. (cherry picked from commit 8d1f7d38)