Calling putenv with a key and no value should unset environment variables

Fixes #2533