[WebGPU] endEncoding should be called when command encoder become invalid
radar://122334686
Pull request: https://github.com/WebKit/WebKit/pull/24192
Committed 274504@main (94e8daf96766): <https://commits.webkit.org/274504@main> Reviewed commits have been landed. Closing PR #24192 and removing active labels.