validate schema arrays when accidentally undefined

Fixes #2238, Arrays of Sub-documents not validating if schema is accidentally undefined