Small optimization for vtkDICOMMetaData.cxx.