Fix a crash when pressing 'connect' while no JID is set