child_process: Bug in spawn() sets env to null; also does not throw TypeError

Fixes a bug where `env` is being set to `null` instead of using `process.env` (issue #7456) and ensures TypeError is thrown.

For more information, read this comment from @trevnorris: https://github.com/joyent/node/issues/7456#issuecomment-40432657