It seems like obvious advice, but the circumstances where this sort of thing could happen are described very well in the article.
I revert to humour in awkward situations, like a lot of people, but I quickly realised that there are some things that you can’t joke about when in this position.
Thankfully I don’t think the team member took any offence by it (although how would I know) - we had a good rapport and relationship, but I immediately realised my “joke” could be taken so many different (wrong) ways that I made a conscious decision to be much more careful after that.
Like many things in life, it seems blindingly obvious in retrospect but not necessarily when you’re caught up in the moment.