fix PeriodsInWeekdaysValidator - correctly handle overlapping periods