Fixed a logic error

No more runtime errors when the user asks for more data points on the
graph than there are available data.