Fix: Crash when attempting to invoke managed entity events on destroyed scripts.

For some reason entities that have received the ENTITY_EVENT_DONE event (about to be removed) can still get other events, like editor reset.