Fix disconnect when sending empty chunks