fix of : TypeError: Object [object Object] has no method 'addError'

fix of : TypeError: Object [object Object] has no method 'addError' if  format requires more than one type
fe.
"format": "alphanumeric"  -> [string,number] -> produces error

data: { "a": false}
schema:
 { "type": "object",
          "properties": {
            "a": { "format": "alphanumeric" },
          }
}