Fix for validate being called on undefined values.
Merge pull request #29 from Battlefy/bugfix/validate-on-undefined

Fix for validate being called on undefined values.