Adding "order" to a terms aggregator results in ArrayIndexOutOfBoundsException