remote: Fix connecting to remote with running server failing (#47203)

Follow up to https://github.com/zed-industries/zed/pull/47200, fixing an
edge case where if the heartbeat failure disconnects us we get stuck in
an unconnectable state

Release Notes:

- N/A *or* Added/Fixed/Improved ...
8d555271acLukas Wirth committed on 1/20/2026, 11:12:16 AM· committed by GitHubparent02a19f7
2 files changedLine totals unavailable