Fixed starting activity code to properly handle continue XMPP messages