Husband jokes with friend that weddings are like funerals?

So my husbands friend is getting married this weekend and he asked him what he should wear to his wedding. He said word for word “what should I wear to your funeral, I mean wedding?” That kind of pissed me off - is that what he thinks of being married to me or and I just being self conscious? He’s a great husband otherwise, but I don’t like these comments he makes to his friends.