Do not override the primary toolbar style

Users should be able to override the style of the primary toolbar.
Check for a valid iter in Browser_Tree_Select_Dir

Found with Coverity (CID 1163372).