[COOK-4332] Support running multiple instances

Fix commit 53aa8c8 that was breaking XML of server.xml when used without `ssl_port`.