Return "empty array" rather than "null" if data is missing

Been seeing my graphs crash recently, eventually tracked it down to the curved lines plugin setting datapoints.points to null if it didn't have enough input data to generate a curve. This patch makes it return an empty array instead, so the rest of the graph will render correctly and this line will not be plotted, which seems like the most correct thing to do in the situation.