child_process: Patch for issue #7456

No point in setting args and options if TypeError
is being thrown.