Check that the DB returns a location - fixes NPE error