Fix bug when trying to predict() using an untrained classifier.