A Muslim enters a building along with 500 people and an airplane.
I am shocked you'd say something like that about Muslims.
What? I don't think that about all Muslims, I just like the joke.
The joke is hurtful to Muslims, regardless if the intent of the speaker. It allows stereotypes about them to spread, even unintentionally.