Flush dnsjava cache if no results are returned

This should prevent some cases in mobile scenarios, where an DNS
lookup on a unavailable data connection results in an empty result
which is cached by dnsjava.