Teacher acknowledgement module: fix exception when no timeslots set.

See Issue #844.
Fix error in previous commit.
Merge pull request #861 from learning-unlimited/issue844

Teacher acknowledgement module: fix exception when no timeslots set.