fix crash when not loading webview