Bug fix: if a student group is connected to a persistent group but it
has no attends and projects associated, it should be marked as
"deleted", instead of throwing an exception

Issue ACADEMIC-593