Added check for stream:error stanza