#1100 add check for undefined to ensure validator does not throw error o...

...r return incorrect result