Check file_id instead of title when setting attachment file id

Not checking the file_id pointer causes a crash when the pointer is
null.

Bug: b/337264771
Change-Id: I96f3cef0d8cbdd72773c6ebf992bb152657a7ee6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5493871
Reviewed-by: Jiaming Cheng <jiamingc@chromium.org>
Commit-Queue: Matthew Mourgos <mmourgos@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1293349}
NOKEYCHECK=True
GitOrigin-RevId: f68c2719d31595e1d0ab48990354cb82dda46d1b
1 file changed