Only decrement percolate stats if query is actually not null
When increment percolate stats take previous query into account.