Fix lowess for constant inputs.

Fix with tests for #1798.
Actually that's a good catch: even with this fix, the call `sm.nonparametric.lowess([0] * 10 + [1] * 10, np.arange(20), frac=.4)` fails (i.e. returns nan).  So this is not enough...