Return std::optional for convenience.
<rdar://problem/115764318>
Pull request: https://github.com/WebKit/WebKit/pull/17962
Committed 268207@main (ec5bee2d9c22): <https://commits.webkit.org/268207@main> Reviewed commits have been landed. Closing PR #17962 and removing active labels.