Fixing django exception if student group doesn't exist