Don't crash when DNS times out or returns empty result sets, fixes #1