Fix for TCAP-214

Proposed fix for https://www.jfrog.com/jira/browse/TCAP-214
"ArtifactFile" returned by Maven API may point to a directory. E.g., when for "test" lifecycle phase.