It’s quite confusing how this could have happened but it’s tragic whatever the circumstance.
As for the earlier joke, appropriate or not it was clearly not meant to be cruel, it’s not like the poster directed it at the poor soul who has died.
A sorry story, whatever the cause.