if predicting probabilities for a nonexistant class, return 0s

fixes #326