Properly log error if netaddr is not installed

Fixes #789.