Fixed error handling in geo ip lookup closes #2011

Mind taking a look at this @aranhoide?
What do you mean by "break" in this last sentence?