add PhEDEx recovery code in PhEDExInjector

Fixes #4863. @hufnagel, please review. I added some info comments from the version you tested.
Thank you very much for testing.