Prevented Attribute error in GDAL objects deletion
Fixed #13843 -- Prevented AttributeError during geometry objects deletion