PLANNER-152 ArrayIndexOutOfBoundsException at BendableScore.getSoftScore caused by erroneous index calculation at BendableScoreDefinition.calculateTimeGradient