SQLite: some code factoring

git-svn-id: https://svn.osgeo.org/gdal/trunk/gdal@25441 f0d54148-0727-0410-94bb-9a71ac55c965
SQLite: add missing check in OGR2SQLITE_ogr_geocode_reverse()

git-svn-id: https://svn.osgeo.org/gdal/trunk/gdal@25442 f0d54148-0727-0410-94bb-9a71ac55c965