Fixes #83. Do not close chunk on empty data.
Merge branch 'kaos-chunk_close'