Fix Fatal Error on servers

when $locale_name is empty.