Added check to loess.wrapper to catch when crossval fails (Error in predLoess(y, x, newx, s, weights, pars$robust, pars$span, pars$degree,  :
  NA/NaN/Inf in foreign function call (arg 5)).

The span step is now ignored and a warning given instead of an error.