ensure end of range >= start of range

If the repeated controls are bigger than the viewport, the end index
could be calculated as less than the start index. Wrap the adjusted
end index with Math.max to ensure that doesn't happen

Issue: ENYO-527
Enyo-DCO-1.1-Signed-off-by: Ryan Duffy (ryan.duffy@lge.com)