Revert "Add a 'leaf' class to menu nodes if they don't have any visible"

This reverts commit 3d4af44bed210be3af5f46e73d2650786fc90059.