Corrected queryAggregator call in SensorEntityAggregator.