Check whether any statements need masking (PR 83922)