Fix required property validation

Fixes issue #102, i.e. the regression introduced by 61059b2