Fix fatal error when usebetatoolbar option was activated and not showtoolbar

Users in this configuration will still have a degraded but working editing experience

Bug: 61220
Change-Id: Ic9d638f29dcd8fb9c56c04b08e4ed27fb5f31f43
Merge "Fix fatal error when usebetatoolbar option was activated and not showtoolbar"