Fix students index view

Before you got an error message if you went to the students index page without having any groups yet.