Not unlike Donald Trump, before Elon Musk became a favorite target of late-night shows, he enjoyed friendly relations with them as a guest.