Fix error occurs when parsing WSDL where operation does not have definitions

This also includes a "feature" to not serialize `undefined` element values in XML. If that is not a prerogative of the serializer, I can remove it.
@cbarton should these comments be removed?