Check that the result is a Classifier before returning it in
findClassifier.