protect against mutation of the dict during insertion (closes #24407)
3 files changed