Fix lowess for constant inputs.
Correct fix for lowess; generative tests.
TST: Additional test from #1960
BUG: Avoid division by zero. Closes #1798.
Merge pull request #2105 from jseabold/fix-1798

BUG: Avoid returning nans in lowess.