eliminate NAs from smooth.spline plotting