Be extra safe on getting airplane mode value

closes #761