Confusion matrix: fix div by 0 error.