Fixed #23514 -- Prevented queries in PostGISOperations init

Thanks Mattia Procopio for the report.
Oh sorry, I just pushed before reading your comment.