Check if the tab is already inserted - refs #7173
Merge pull request #307 from FraGoTe/7173

7173