Properly parse error IQs which also contain a child element (other than
"error").
Guards against NPEs. Supports empty 'result' IQs (without a pubsub child element) as responses to publish requests.