mongo-utils: Fix parsing addresses without a port name

When the address does not have a port, set the output port parameter to
-1. This fixes #24.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>