refactor get_stats_data
specify zero counts at start and end dates when no data is found
Merge pull request #4165 from dimagi/fix-graph-message

Fix graph message