Fixed error handling in geo ip lookup closes #2011

Mind taking a look at this @aranhoide?
No -- it's just removing dead code.