svgRenderer->layer() is accessed unconditionally, fix that.
Pull request: https://github.com/WebKit/WebKit/pull/4022
Committed 254161@main (d05d7a208494): <https://commits.webkit.org/254161@main> Reviewed commits have been landed. Closing PR #4022 and removing active labels.
<rdar://problem/99565889>