Fixed Issue 8062

Upon death attached (if any) script's execution only terminates if there is a open dialog, allowing silent npcs to remain running.
Special Thanks to Haru, AnnieRuru!
http://hercules.ws/board/tracker/issue-8062-when-player-died-the-script-execution-stops/

Signed-off-by: shennetsind <ind@henn.et>