Fix for previous commit associated with preventing recording of specific changes in UndoManager.