Fixes bug where app crashes when booted in airplane mode.