[12772] Fix crash when resurect a corpse.

Special thanks to antiroot for his help
Fix cmangos/issues#478