Avoid error when plotting all-NaN vectors