fix bad read found by valgrind
Merge pull request #2936 from lgray/fix_egamma_badread

Reco fix -- PFEGammaAlgo: fix bad read found by valgrind