Fix error in rescan/invalidation logic for nested notin.