Do not invoke LinkPersister#isLinkContent for attributes

As in this case, we KNOW it's an attribute, and attribute
content is what we are interested in.
Fixing mocked UTs for NPE

As new call is added now for UID
Added test verifying that attribute files are not checked for being a link
Merge pull request #444 from sonatype/no-link-check-for-attributes

Do not invoke LinkPersister#isLinkContent for attributes