fix an ArrayIndexOutOfBoundsException that could occur if ESSearchTask fails