Don't use Hash#reject for a tainted hash.

This suppress "extra states are no longer copied" warning.