Fix bug in validating additional properties.