XWIKI-10536: Capitalize first letter for buttons when adding a tag.

* Fix failing tests.

(cherry picked from commit 426f5b357c8e72b38ed047dd2f43ee6509397127)