child_process: Patch for #7456

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