The comments came when the former king of late night TV appeared on the show hosted by his former executive producer.