Don't attempt to resolve JS promises if their script execution context is stopped.
<rdar://problem/115819514>
Pull request: https://github.com/WebKit/WebKit/pull/18003