Don't crash when you're offline. Fixes #114

Change-Id: I68df886159a699f240ca68621355f0951e06cacb