BUG: clip values of sf, pmf and cdf to between 0 and 1
Merge branch 'pr/3211' into master

Reviewed at https://github.com/scipy/scipy/pull/3211