Fix in 'additionalProperties' validation

The function 'validate_additionalProperties' ignored the contents of 'patternProperties'.
See the paragraph 5.4.4.4 of http://json-schema.org/latest/json-schema-validation.html