add exception handling to wasm feature detection (#6753)
add exception handling to wasm feature detection (#6753)

See issue #6752 for details
tensorflow/tfjs,tensorflow/tfjs,tensorflow/tfjs,tensorflow/tfjs,tensorflow/tfjs,tensorflow/tfjs,tensorflow/tfjs,tensorflow/tfjs,tensorflow/tfjs