delete_values() fix bug #20681.

Function delete_values should not delete elements from origin hash.
Same bug as delete() function pull request 178.