Avoid sending empty chunks in gzip streaming before end of payload