Update RestService.as

Fix an issue where queued requests will be dropped if the device is offline