Add a case when the url parsing fails, to not call stupid url.