Fix for #1409: error when localepath doesn't exist