JCR-3539 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/trunk@1459802 13f79535-47bb-0310-9956-ffa450edef68