Enable usage of constantLine function without any other target in the graph

When we wanted to draw a graph with just a constantLine,
it raised a ZeroDivisionError.
This patch corrects this error.