Fixed crash when undo/redo stack is empty