Loosen an assertion to account for stashed errors.
The meaning of this assertion changed in #120828 when the meaning of `has_errors` changed to exclude stashed errors. Evidently the new meaning is too restrictive. Fixes #120856.
N
Nicholas Nethercote committed
bb60ded24b6e4a8dfbcf8533b58c1a35b87bbb8b
Parent: f4cfd87