Added some error handling

Accounts for ip addresses where a country cannot be established, either
because it is assigned to a region rather than a country or an
anonymous proxy / satellite provider