catch urlparse exception if url is None