Fix error on save when there are no tags.