SERVER-8344 Prevent query state errors on index rebuild