fixed bug when non 'element' occured but 'text'

Reach this when connecting to vines ruby xmpp server