Adds empty data points to fix #265.

Zero days are not displayed on the graph. This is a duplicate of @dolfje's pull-request #266 except it merges into the development branch and adds wraps some of the code in an if block in case no dates are provided.