Fix parsing of packets with nested elements with the same name
Wildfire fails to parse this packet and closes the connection of the user:
<message id="3W3We-84" to="gato@localhost/IDEtalk" type="chat"><body>will update it...</body><thread>12jid1</thread><IDEtalk-data xmlns="http://idetalk.com/namespace/jabber"><message xmlns="http://idetalk.com/namespace" when="1171565295250">will update it...</message>
The bug fix also fixed the parsing of </stream:stream>. It is now correctly being parsed and recognized as a stanza.