AI-499 : bugfixing :  fixed issue with undo manager (if do op1, op2, undo, op3, redo -> exception and corrupted state of panel)