Fix NULL pointer issue in line plots. [#706663]