top_hits aggregation: Fail with a parse exception if `top_hits` agg is defined under a `nested` agg.

PR for #8668
It then still fails, because this method iterates all the way to the root agg and find that `nested` agg. If no `nested` agg have been defined above the `reverse_nested` agg than the parsing of the `reverse_nested` agg fails.