Prevent wasted flush when finalizing a chunked response