Added one 'if' check to the code. Check if there are any slices in the structure. For some dicoms there was a strucutre defined in StructureSetROISequence but the structure was missing in ROIContourSequence.
Added more structure checkboxes. There are plans containing over 30 structures.