Fix bug that was introduced into the chunked response channel
Fix regression when serving resources using the writer