zpaq: use assertion instead of test return value

Closes #29483.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>