Added check in modules.locale for empty string in locale. This
safeguards against an empty string in locale