Suggestion: in line 358 replace if (!env.fieldType[schema.type](prop)) with if (prop !== null && typeof(prop) !== "undefined" && !env.fieldType[schema.type](prop))
Suggestion:
in line 358 replace
if (!env.fieldTypeschema.type)
with
if (prop !== null && typeof(prop) !== "undefined" && !env.fieldTypeschema.type)