fixed possible NPE in LocationValidationRule