Here a possible fix for HHH-9329

I know it's probably not the prettiest solution but at least it works.
Unfortunately this won't work for embeddables because ```*embeddable* IS [NOT] NULL``` does not work. We either need support for that too in order for this fix to be appropriate, or create IS NOT NULL nodes for every attribute of the embeddables. Actually I would prefer the first option.