fixed index ambiguity
Merge pull request #6334 from yetkinyilmaz/gen_bugfix_73X_01

Minor bugfix in GenParticleProducer