I would put it in front of a frame builder I could trust and ask for a top to bottom inspection. No sense replacing the top tube if the remainder is suspect. If it seems otherwise OK, then do the math and decide if you like it enough to keep, or guess at what price you would get with/without replacement. My hunch is replacement would be better left for whoever keeps the bike, but I could be wrong.