Sync with elasticparser. Fixed empty aggregations issue.