Fixing delete KeyError (refs #19048)