parser: fix (distance to viable state) bug in error recovery code

Signed-off-by: Peter Williams <pwil3058@gmail.com>