Fix memory leak in WSDL parser

The document tree for the WSDL and referenced XSD-s was not deleted
after parsing.