Fix some dead code according to the clang static analyzer.
Pull request: https://github.com/WebKit/WebKit/pull/17847
Committed 268092@main (e311e6b7fce5): <https://commits.webkit.org/268092@main> Reviewed commits have been landed. Closing PR #17847 and removing active labels.
<rdar://problem/115676672>