fix setSelectedBufferRanges bug when sels is empty
Merge pull request #153 from d4rkr00t/fix-ssbr

Fix setSelectedBufferRanges bug when sels is empty