[CB-2840] Nil checks to avoid crash when network disconnected