Fixed bug that made eddy crash for certain orderings of b0/DWI scans
Fixed bug that was introduced as part of the rewrite of calculating the summary statistics for outlier detection. The rewrite was part of fixing the problem with eddy not being able to find shape reference volumes for slice-to-volume.