Set the selection to null when query changes.

Otherwise, if the user chooses the same selection, query will not be
updated.