TDI-30848:change context mode if the repository context group deleted.