TOOLS-494: restorewithauth.js expects the wrong number of indexes