Chain the dead character to someone and teleport (homestead, etc), then resurrect.
Ok, good to know that this works. But again, it's not the solution I would vote for...

Maybe the ressurection spell should be reworked as a two-actions-chain. First, click on the dead character who you want to ressurect. Second, click on the terrain where you want him/her to ressurect. That would prevent the instant death of ressurecting character due to environmental effects they were into at the time of death.