Don't modify passed in properties hash (Fixes #420).
Merge pull request #1582 from abuiles/fix-createRecord

Don't modify passed in properties hash (Fixes #420).