spatialite: fix handling of empty geometry column (fixes #8299)