No real idea why node's typeinfo is NULL here... but think we do not care much in that case, so just adding some NULL checks for now.
No real idea why node's typeinfo is NULL here... but think we do not care much in that case, so just adding some NULL checks for now.