Omit port['host_name'] if no value is given

Host port is optional, so we shouldn't pass it to the API if the user does not specify a value.

[fixes #79313728]