fix segment date calculation after discontinuities

an incorrect date could be returned, rather than null
0.1.6