Fixes bugs on wrapping return values to Ruby classes
Methods in IGXMLNode and IGXMLNodeSet can return nil, they have to be
checked for undefined in JavaScript (nil in objective-c), and return proper
Ruby nil for others to use properly.