QgsVectorLayer: delete before adding/changing features (fixes #6422)