Fixed nullpointer when retrieving global variable from ClassNode.