address_for does not check for nil interface addresses

Add checks to address_for to check for no addresses for interface
or no address for interface family.

Change-Id: I3f81a80457df7a421cf60ba192fb8d7062f641a6
Closes-Bug: #1368292