Fix for a weekend/holiday bug

Fixes a bug that appears sometimes when generating a graph without
weekends/holidays. If the last working day is before a holiday or
weekend, the last day was not on the graph.