wayland: Hopefully fix a panic recenty added in #32784 (#32808)

Release Notes:

- N/A
baad66c740Michael Sloan committed on 6/16/2025, 4:57:42 PM· committed by GitHubparentc7de817
1 file changedLine totals unavailable