Close GH-34: Fix error when statusBar is undefined.