Fixed indexing array without checking array size issue in _getDistributedKeyframes