Skip empty locale strings when building the language cache