This fixes #8337.  It now checks if a table exists every time the group is changed.