[Resubmit] Don't crash on retrieveDesyncReport (#98470)
Per title
Differential Revision: [D44736409](https://our.internmc.facebook.com/intern/diff/D44736409/)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/98470
Approved by: https://github.com/XilunWu