Avoid NPE with Locations in config files.