avoid NPE in PAG2HTML if variable node is GlobalVarNode
added better error handling for RTA