[2.0.0] Fix asset collection join issue

Fix an issue that appears after fix for #2997

If assets outputCss or outputJs methods are called and join is false, an error is raised, that target path equals source path.

Also includes a test for this issue.