Added bounds check on an array index.
Merge pull request #1468 from kknb1056/trackingTruthAccumulator_genParticleIndexFix

Sim bug fix -- Added bounds check on an array index.