Finally found out that we cannot do nullptr check directly on DFG. Need
to rewrite the whole client :(