Aggregations: Fix regression bug for the support of terms aggregation on the `_parent` field.

This bug appears in unreleased code (1.4, 1.x and master branches).