Fix bug with HEAD requests and chunked transfer-encoding.

Closes https://github.com/snapframework/snap-core/issues/192