Different leaves might use different codecs, and some of them might support `totalTermFreq` while other leaves might not. So this should return `-1` if any of the leaves returned `-1`.