Revert "avoid mutating datum in idempontent"

This reverts commit dc635a574ab70385e2fecc05d41a67e4b2636214.
avoid mutating params when invalid keys are present
Merge pull request #288 from burns/avoid_mutating_with_invalid_params

Avoid mutating params with invalid keys