Fix glitch entering tag with whitespace

If an existing colored tag was added to an item with whitespace around it, the
tag didn't immediately show up with a color.