Fix NOT IN empty list optimisation