moved the adition of the start and end time of the series after the reduce function checks each data point from elastic search. This whould resolve #422