delete prop in restore when it's not own property of object

I found it can't set undefined to process.env

```
process.env.a = undefined
console.log(process.env.a); // show `undefined` it's string!!!
```
oh, never mind, we live in es5+. Keep this work.