Stories like this are probably why the Irish pubs were traditional places to hold wakes, including a room with a bed for the corpse being celebrated. Much more convenient for husbands who make the mistake in the joke if their wife sees him do it.
Jerry