Add a travis file entry
[network] Be more rigorous when considering the result of getifaddr

- Check the return value and handle failure at this point
- Handle cases where ifa->ifa_addr is NULL

Detected on travis platform