[DF-4403] Fix saving project after Undo