Gracefully handle NaN's when plotting data