channel: Fix unpacker loop condition