refs #9048 Coverity Noise

https://scan6.coverity.com:8443/reports.htm#v29240/p10083/fileInstanceId=11026571&defectInstanceId=3877375&mergedDefectId=529159
for ConvertToDiffractionMDWorkspace