catch error in delete_course management script when group does not exist

minor PR, helps with dealing with older courses which don't have the recent course group structure