Fixed finding the IP

This code only worked if the last interface was the public IPv4 interface. If the reduce had the `accum` already, but then did another iteration, since it doesn't fall in `if (!accum)` it would return `undefined` for the `ipAddress` value.