[ui-side compositing] Add check for layer after scaling CATransaction completed
<rdar://problem/108234128>
Pull request: https://github.com/WebKit/WebKit/pull/13056
Committed 263643@main (e2f320571c31): <https://commits.webkit.org/263643@main> Reviewed commits have been landed. Closing PR #13056 and removing active labels.