don't override the `index` variable from the function definition

index was set to `amo_stats` after the first loop iteration, and then didn't
get updated correctly to `amo` for the InappPayment model
Merge pull request #678 from hannosch/852133-inapp-payments-wrong-es-template

don't override the `index` variable from the function definition