Avoid ImportError when GeoIP is missing

Adjust the import of GeoIP to first check whether it is available.  It wasn't
on my Mac and so I was getting an ImportError.

I'm not 100% sure this is the right way of handling this.