[OHAI-492] - IP address detection fails if there is an interface with no addresses

This fixes http://tickets.opscode.com/browse/OHAI-492.