Check parse_url worked before using it.