Fix format_url_parameter so that it works when None or ''.