[#3241] Cursor.iterator() does not correctly implement Iterator.next() contract with respect to NoSuchElementException