Check value for null when enabling airplane mode