Checking DICOM modality to prevent crash
added warning
changed typo in warning
Merge branch 'bug-18216-dicom-crash'