Fix problem passing empty or non-existent URL to constructor or .parse()