Fix for ferret rebuild index task. [ci skip]