Fix crash when trying to parse bad urls.