It's already fixed in CVS. The exact reason, is that the vitals for the actor are created after the character mode is set. So, it pukes on trying to set vitals for dead things. If new people die, this doesn't pose a problem. It only happens if you walk into an area with pre-existing bodies.