Fixes a bug where an empty tags box would generate an empty tag