ROIs have the property isNew since a few commits now. Upon saving all ROIs are set to isNew=false.
There was a bug whereby if one Zlayer had no ROIs the software still wrote `ROI.isNew = false` in the empty field thus creating a struct and not a ROI object.
This failed every time a ROI method was called since it was called on a struct and not a ROI object.