[SP-1338] - Backport of MONDRIAN-2107 - Incorrect segment rollup with ov...

...erlapping segments (4.8)

It's Backport from https://github.com/pentaho/mondrian/commit/58005870ceab0249c91c33b19e0ddaaf9329586a