child_process: properly support optional args argument

Currently, a `TypeError` is incorrectly thrown if the second argument is an object. This commit allows the `args` argument to be properly omitted. Closes #6068