Don't clear tab relations for correctly duplicated tabs (#605)