DataSet: fix / improve .appendDataPoint()

[#62270766]

Better handing of undefined values.