Fix wrong error shown when loading invalid URL in startup.