bugfix: don't IndexError when iterating over empty Indexes