Fix bugs in Validation/RecoEgamma

While investigating a crash in PhotonPostprocessing in the threaded IB RelVals I discovered several bugs in both PhotonPostprocessing and PhotonValidator. This change would have prevented the crash, however the true origin of the crash was fixed in pull request #4950.