fix null pointer

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