Fix code that dereferenced an end iterator.
Fix code that dereferenced an end iterator.

dgobbi/vtk-dicom,dgobbi/vtk-dicom,dgobbi/vtk-dicom,hendradarwin/vtk-dicom,hendradarwin/vtk-dicom,hendradarwin/vtk-dicom