add check for window.location.search before using it (#1384)
add check for window.location.search before using it (#1384)


tensorflow/tfjs-core,tensorflow/tfjs-core,tensorflow/tfjs-core,tensorflow/tfjs,tensorflow/tfjs,tensorflow/tfjs-core,tensorflow/tfjs,tensorflow/tfjs,tensorflow/tfjs,tensorflow/tfjs,tensorflow/tfjs-core,tensorflow/tfjs,tensorflow/tfjs-core,tensorflow/tfjs,tensorflow/tfjs