add some more error checking to the start of AlgorithmCiftiResample