added function to waf.widgets.menuBar that more reliably finds current menuItem.