Return NULL for var substitution if undefined dag