SERVER-134723ClosedFixed

Fix crash if sync source resolver fails to find sync source for catchup

There seems to be a crash coming from [this log message|https://github.com/mongodb/mongo/blob/v8.0/src/mongo/db/repl/bgsync.cpp#L396]. This is logged when the sync source resolver can't [find an appropriate sync source|https://github.com/mongodb/mongo/blob/v8.0/src/mongo/db/repl/bgsync.cpp#L389]. However, {{getSyncSource()}} requires that there be a valid sync source stored in the response object and that the [return status is OK|https://github.com/mongodb/mongo/blob/v8.0/src/mongo/db/repl/sync_

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix
9.1.0-rc09.1.0-rc10249.0.78.3.188.0.39
Components
Server components related to this issue
Replication
Labels
Tags and classification
bkp