If it makes you feel better to believe that the Trump campaign didn't load the teleprompter with the comedian's joke about Puerto Rico, don't read the linked article:
Like the rest of the speakers who took the stage before Trump, Hinchcliffe’s remarks were pre-loaded into a teleprompter, indicating that they would likely have been vetted by the campaign in advance.