JCR-3539 backport : fix the NotQuery to have a advance and nextDoc working in line with how Lucene contract is.  In case of a Filter was applied in the search, that now works as well

git-svn-id: https://svn.apache.org/repos/asf/jackrabbit/branches/2.6@1459810 13f79535-47bb-0310-9956-ffa450edef68