Fix validation when it can return nil instead of true or false

Fixes #22