Skip "open this directory" menu entry in case of errors (#37872)

Follow-up of https://github.com/zed-industries/zed/pull/37564

Release Notes:

- N/A
eb7154d099Kirill Bulatov committed on 9/9/2025, 7:53:03 PM· committed by GitHubparent18c6d9d
2 files changedLine totals unavailable