Null check on header for gzip to support non-standard clients