Fix compat with rubyFrameCount in cg2xml.