The iconic comic came very close to succeeding Johnny Carson as the NBC talk show host.