split Lines by NaN values
Splitting lines on NaNs on other backends. Fix Cairo detection.