Swatch Groups Issue

If a script uses the swatch group creation method swatchGroups.add() in combination with undo actions via app.undo(), it can cause…