Fix computation of previous milestone in a course, fixes missing lesson plan entries.