Fix parsing of the top hits aggregation response

The top hits aggregation response wasn't being read to completion causing
other aggregation results on the same level to be skipped.

Closes #1169