SLING-2986 : Fix resource hiding when parent resource contains attribute but child resource is not available. Reduce resource getting to a minimum

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