Fix check of `loadWebGPUExpectations` for undefined (#512)
Fix check of `loadWebGPUExpectations` for undefined (#512)

`if (someVariable)` does not work if the variable is
truly undefined. `typeof someVariable !== 'undefined'` should
be used instead.
gpuweb/cts,gpuweb/cts,gpuweb/cts