Passing null for globalWorkSize should throw TypeError

In JavaScript, TypeError should be thrown when an argument is not of the expected type. Since `globalWorkSize` is not declared nullable, passing `null` should cause a TypeError (as opposed to `INVALID_GLOBAL_WORK_SIZE`).