Fixing value error when url is not parseable.