catch TypeError when openrosa_headers is None