This quote means that if the sense of humor of the American people (their ability to laugh and make jokes) has kept the American people safe, it is thanks to the Irish immigrants who have moved to America and contributed to the American population with their intelligence over the years.