Fixed null pinter exception in validator. For context we wanted to
check if it is unresolved (if not null).