smartxml: fix - do not clear redo stack if we are just performing undo operation