Fix Cppcheck warning in ConvertDICOMSeriesToImages

Change-Id: Idcd6fc9832fc913f4a3b9d009fedf04b9cf4a69d