aggregation having should treat null as failing comparisons