Add a 'leaf' class to menu nodes if they don't have any visible
children.