examples/attach: more robust check for a successful bind

<bind> is not necessarily the first child element of <success> (it isn't
in the XML returned from Prosody 0.8).  Therefore, to robustly check if
a bind succeeded, we must check *all* the children of <success> for a
<bind> element.