Fixed #23514 -- Prevented queries in PostGISOperations init

Thanks Mattia Procopio for the report.