Fixed crash when locale contains only language.