lastAggHour value was set incorrectly.
The hourly aggregation run on hours that were not collected yet and that resulted in empty hours.
Also daily aggregations were affected by the hourly aggregations and aggregated empty hours.
Added a fix the prevents hourly aggregations if the lastHourAgg is not valid and the hourly aggregation will wait for an hour until it tries to aggregate again on the same hour.
Hourly aggregation are run on the required time period and if the lastHourAgg is for some reason invalid, the hourly aggregation will fail with a warning.