ProgramPrototype: Fix crash in getValueForTime(...) when the timeline has...

ProgramPrototype: Fix crash in getValueForTime(...) when the timeline has length x and you want to get the value for y%x == 0
1 job for master in 5 minutes and 38 seconds
Status Name Job ID Coverage
  Build
passed build #500264

00:05:38