Fix regression when setting tags when there already are tags.