workaround for error -999 [trying to load a webpage before last page finished loading in webview]