Checking for null location during nearby condition check