Catching error when unable to read important attributes from DICOM file