LIB: Add NULL checks for curIf->ifa_addr

Apparently this can be null in some systems such as those with Proxmox.

Ticket #827