xmpp: fix get_online when using a vhost (TSUN-289)