OAK-2198 - Add support for declaringNodeTypes to only index node with specific types

Make nodeType based query conditional untill we have proper support for nodeType indexing

git-svn-id: https://svn.apache.org/repos/asf/jackrabbit/oak/trunk@1632303 13f79535-47bb-0310-9956-ffa450edef68