Also fix an issue with accessing an unset optional. Bug: webrtc:14852 Change-Id: I45da8c6add87ac562c3c3f3d11c0021244927f8d Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/337580 Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org> Reviewed-by: Åsa Persson <asapersson@webrtc.org> Commit-Queue: Sergey Silkin <ssilkin@webrtc.org> Cr-Commit-Position: refs/heads/main@{#41716}