Fix error case in jabber-network-connect-async

The `connection-failed' function didn't have access to the variables
`target' and `remaining-targets', since they weren't lexically bound.