Reject promises synchronously when track has ended
<rdar://problem/119564866>
Pull request: https://github.com/WebKit/WebKit/pull/21697
Committed 274437@main (b0a7f8b8febb): <https://commits.webkit.org/274437@main> Reviewed commits have been landed. Closing PR #21697 and removing active labels.