Fixed bug when ifa_addr is NULL

For example where the interface is socketcan.