Fixed null ref with invalid urls.