PHOENIX-965 Cannot aggregate on index with NULL values