Thanks for the report! Please change this in scripts/corpse.lua (starting at line 124):
-- Both event corpse and stored corpse are valid, so we can check if all
-- their properties are identical
if corpse and corpse.valid and corpse_data.entity and corpse_data.entity.valid and
corpse.name == corpse_data.name or
(corpse.name == minime.generic_corpse_name and corpse_data.use_generic) then
to this:
-- Both event corpse and stored corpse are valid, so we can check if all
-- their properties are identical
if corpse and corpse.valid and
(corpse_data.entity and corpse_data.entity.valid and corpse.name == corpse_data.name) or
(corpse.name == minime.generic_corpse_name and corpse_data.use_generic) then
Does that work?