Previously, if a user changed the query between requests, the previous query would not be canceled. This handles that edge-case.