Adding fix for declaration of variable that is used to specify if additi...

...onal menu item children classes should be specified.