par2: fix assert failure

Closes #28795.
Closes #28796.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>