Sema: handle adhoc inferred error sets in helper functions

There were two missing places.

Regressed in the #16318 branch.

Found from compiling Bun. Unfortunately we do not have a behavior test
reduction for this bug.
c804abc7f6Andrew Kelley committed on 7/23/2023, 3:21:27 AMparent012cbdb
1 file changedLine totals unavailable