This is a partial backport of commit eb9430fc. Without this, geojson support is never detected with Spatialite. Refs #20252 and #19028.