Also handle undefined and NaN x-values on Line and Area.