DF-1938. Fix tilemask editor undo\redo