* Moving call to _replaceIconWithBox() because hideButton() and showButton() were being called prior to calling this, which made Main.panel.statusArea['batteryBox'] undefined.
* Adding a check to hideButton() and showButton() to make sure Main.panel.statusArea['batteryBox'] isn't undefined prior to checking the rightBox item's _deligate attribute (which very well could be undefined)