[sr-dev] git:master:f8f40045: core: resolve negative index for dset before checking if it is last branch