fix DEFAULT_LOCALE, the language and country maybe null in some platform