Fixed crash when diagrams had only one data graph.

For timing/tab/truth diagrams corrected handling of case when there was only
one data variable to graph and no data were available.
Fixes #150 .