Fixed crash when the device wasn't connected to the internet.