Fix problem with undefined values in last point in lines graphs.