Call tool-bar-mode only when it's defined.