More sensible detection of the correct term.

Will only default to previous term during holidays if no exercises are
currently set in the holiday period.