Avoid assertion failure on unexepcted address family in DNS reply.

Fixes bug 9337; bugfix on 0.2.4.7-alpha.
Merge branch 'bug9337' into maint-0.2.4