SegmentsBySourceJS: fixed handling of numerical indexes passed as string

Accessing segments with numeric keys always fail due to the fact that such keys are always converted to numeric values. This patch fixes the behaviour of this wrapper in order to return a proper object instead of "undefined".