Fix detection of Auth mechanisms.

mechanisms is not neccessarily a child of auth (http://xmpp.org/rfcs/rfc3920.html#tls)