Fixed #20968 -- Checked Spatialite metadata on connection creation