[mcs] Reset catch state variable after it has been checked. Fixes #54322