[DF-1294] Fix tilemask editor undo/redo when other landscape editor is active