Check we can get the location from the DB - fixes NPE error