toolbarcontroller: Detach event handlers before re-attaching.

Change-Id: Iaa854768c658f173ca19061e29e7792bf765efda