Fix NaNs in pdf output breaking rendering

3 jobs for fix_nan_in_pdf