Fixes bug where app crashes when booted in airplane mode.
Merge pull request #89 from christiang88/master

Fixes bug where app crashes when booted in airplane mode.