#612974 by effulgentsia: Optimize toolbar to only build if it will be displayed (performance improvement).