
Before this, the ReindexIfStaleTask class used index, which in turn calls autoReindexIfStale. This leads to an infinite loop if isStale returns true several times in a row. To my knowledge, this didn't happen in production, but I triggered it locally while testing things. Change-Id: Id5b5cbf15be0d6c8fd7d42d1e686a5c34801b91d