Add sanity-catch to 'delete-all-triples

Only try to delete triples if we actually retrieved some for deletion.