catch ValueError on netifaces.ifaddresses(), cleanup disabled code

Based on patch provided in #210.

@tfoote @wjwwood Please review and merge.