XWIKI-9946: The menu of the menu application changes color in edit mode

(cherry picked from commit ec2f9a28f134a48a5c1a3f1609a28bdd372048f4)