Disable offline mode before upgrading to XMPP (fixes #174)

Signed-off-by: Daniele Ricci <daniele.athome@gmail.com>