Fix cppcheck warnings.
Return an empty vector of probabilities when DiscreteDistribution is
empty.