fix(client): more gracefully fails api calls before connection (goes undefined)