Fixed regression introduced by 20472aa827669d2b83b74e521504e88e18d086a1.

The wrong exception was being caught when detecting the presence of GeoIP.
Thanks to ramiro for the report.