Fixed error handling in geo ip lookup closes #2011

Mind taking a look at this @aranhoide?