The scheduler list is processed immediately. It only checks the current "me" pointer - the engine won't remember which value that pointer had when the task was started.

Do not rely on this crude mechanism to fix pointer errors. The normal and proper method is to have code in your script that terminates all its actions and clears all its references when an entity is removed.