fix get_next

check if oid for get_next is last oid in our tree
get OID we found in get_next