Fix DetailPredmetuPage when there are no students or teachers.

Fixes #46. Fixes #47.