Check if GeoIP database file exists before opening it

This prevents huge amount of logs to be written.