src: fix inspector nullptr deref on abrupt exit
Fix a nullptr dereference on abrupt termination when async call stack recording is enabled.
Bug discovered while trying to write a regression test for the bug fix in commit df79b7d8 ("src: fix missing handlescope bug in inspector".)