sanity check before invoke js on web view.