knsupdate: fix default port handling

refs #2137

Change-Id: Iecacf01d0f88c5774d02eddf1db53199f4357608