Fix for issue #932

fix null pointer where schema ComplexType in a document does not declare a schema attribute