Fixed an error when sparklr cannot be reached