Fixes #6530: Ensure proxy configs work if not all values specified.

If only host or port were specified, a trailing coma resulted in the
configs causing Pulp to fail to start since the JSON was considered
invalid.