OAK-1781: Too many branch commits on document node store
Avoid purging to branch on NodeBuilder.getNodeState() call when the branch does not yet exists

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