Fixed BinomialDistribution to deal with degenerate cases correctly. JIRA: MATH-1136 Reported and patched by Aleksei Dievskii.