Fixed crash when device does not connected to network.