Fixes a rare bug occurring when an event exist for the last day of a year, but no events exist for the whole next year. Fixes #37.