Take care not to let Undefined through.
rdar://114695740
Pull request: https://github.com/WebKit/WebKit/pull/18934
Committed 269244@main (939e0cd24c09): <https://commits.webkit.org/269244@main> Reviewed commits have been landed. Closing PR #18934 and removing active labels.