When this test shuts down the secondary node, it makes no guarantees that the secondary has fully-applied and advanced the stable timestamp of the "startIndexBuild" operation.
We should use the "recoverFromOplogAsStandalone=true" setParameter in the subsequent startup of the standalone node. This will guarantee the startIndexBuild oplog entry has been applied before making assertions about the presence of the index.