Add a URL validity check before trying to load the URL
Loading an invalid URL, which can happen after loading a plugin that has documentation, results in a QTextBrowser warning message. Check the validity of the URL before trying to load it to avoid this warning.