Check whether the interface address is populated

While listing out all interfaces in a system, check to see whether an
interface address is set before checking for the address family. It is
possible that a dummy interface is created without the address being
set.