Test navigator before using it in `WebGLTextures` (#24717)
* Test navigator before using it in WebGLTextures
Otherwise it fails in node, where global navigator object is not defined
* Update WebGLTextures.js
Co-authored-by: Michael Herzog <[email protected]>