Minor tweak to indexDiskObjects.

(cherry picked from commit 1a6c8a090725a990e95db5a7b215ae0979c65f61)