[JENKINS-17374 JENKINS-18116] Don't set gzip header for error