Correctly handle IS NOT NULL.