Check if tag exists before adding it to the tag repository