HUE-1772 [core] Adding a new tag remove the sample tag

Improved tag rendering after editing them on documents