Bugfix in CursorMock.__getitem__