Good catch. Reason for that is that the validator wasn't called if the value was empty. Fixed in 7f530e4d3f9120a829bf80ca1f512393fb7d4208.