Fix NPE with timeseries query and dimCardinality aggregator