oo-iptables-port-proxy: getaddr: clean-up and add check

Clean up the `getaddr` command to use pure Bash with only one fork and simpler (and hopefully more reliable) parsing.

Check that the IP address is not empty in `getaddr` and report a helpful error message if it is.

This commit fixes bug 1121200.