SLING-3670 : fixing primaryType detection when domElement is set but not attribute jcr:primaryType exists

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