don't forget about None date_ends
Merge pull request #3031 from dimagi/date-end-fix

don't forget about None date_ends