Fix client bug related to connecting to online mode servers in offline mode