Fixed the bug disallowing to listen reception of chunked messages

Quick (tested but with no unit test) fix for #6