Remove potential crash when missing worktrees (#12291)
This PR removes a potential crash when there are no worktrees in the
project.
Present on Nightly only.
Release Notes:
- N/A
8450d63ed6Marshall Bowers committed on 5/25/2024, 7:24:15 PM· committed by GitHubparentace371a