Terms aggs: Validate the aggregation order on unmapped terms too.

Close #8946