java/java.i: Update to use the new Xapian::iterator_valid() API.

git-svn-id: file:///home/xapian-svn/xapian/trunk@18257 6b2f1b92-a4f3-0310-943f-de3cbe41748b