fix error handling when accessing a missing group

Case:61348