Do not reset ts index when there is no complete package in encoding buffer.

Signed-off-by: Michel Verbraak <info@1st-setup.nl>