Make a copy of lodash before modifying it.
Merge pull request #2476 from diversario/fix/2440-lodash-corruption

Make a copy of lodash before modifying it.