fix: testing not null predicate on a dynamic reference

did throw an excpetion