Smarter handling of closed tickets for determining date range.

app/controllers/version_burndown_charts_controller.rb: Be smarter
about handling closed tickets in determining whether the iteration is
over or not.