Fixes bug where app crashes when booted in airplane mode.

This change should address crashes that sometimes arise when booting the app with airplane mode on.