Fix onPageShowOrLoad error on certain sites when Scriptish is enabled.