setSampleBufferAsDisplayImmediately should check that attachment array is not null
<rdar://115712997>
Pull request: https://github.com/WebKit/WebKit/pull/18563
Committed 268802@main (53867c15edf3): <https://commits.webkit.org/268802@main> Reviewed commits have been landed. Closing PR #18563 and removing active labels.