Refs #21327; exit out of the loops after splicing in order to avoid continuing the loop on items that are no longer available