This will avoid errors when separate_locales is set to true but the locales directory does not exist. This is the case of many apps that do not support separate locales but haven't specifically set separate_locales to false in the configuration.