accept a range starting from 0 when there are no items

Bug discovered by @dnauck