elasticsearch: Clear tool output before indexing

This is both huge, and difficult to normalize for Elasticsearch.

Fixes #7038
Does this actually copy it, or return a modified ElementTree?