Fixes an issue with forEach when using formData.

The `forEach` fix is below, but I honestly don't know why the params object is changed. I certainly didn't change that locally, but I'm also in sync with master so I'm not sure what that's all about.