Fix issue with locale alias when there is no locale.