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

Fixes #903