Clear toolbar after switch. (see #11025)