fix required property validation accepts undefined values (#5)