Check iter in Browser_Tree_Rename_Directory

Found with Coverity (CID 1163371).