Checking that bb.menuBar.menu.style exists before modifying it.
Fixes #903
Merge pull request #907 from glasspear/903

Checking that bb.menuBar.menu.style exists before modifying it.