fix bug in PiecewiseTrajectory (@graven)
Fix for the bug discussed in !1695 (merged) and LHCBPS-1816. Not to be merged until impact on data and alignment has been evaluated. When applied, should fix the test in !1710 (merged)
Edited by Marco Cattaneo