Teacher acknowledgement module: fix exception when no timeslots set.

See Issue #844.