Bug 964861 - Don't update the toolbar state before it gets attached (r=bnicholson)