The Libertarians would have been smarter to not invite Trump. Same with Kennedy. They wanted publicity and they got the unwanted kind.
Ah, but if Trump had not appeared on stage in front of a hostile Libertarian Convention audience- and then pulled it off! - nobody would ever heard of the Libertarian Convention at all.