Not sure I understand the problem. What condition do you check to trigger the event?
Game.creeps.creepName will become undefined when the creep is dead.
Game.getObjectById(creepId) will return null when the creep is dead.
But Memory.creeps.creepName persists even after the death of the creep.