Fix endless recoursion introduced by 7c6409c48853c1b5871cc9f811c3dfa3b1b43a84.

The previous commit introduced an circular dependency between contao/core and
contao-community-alliance/composer-plugin and therefore broke the dependency
graph.
This commit fixes all potential circular dependencies and stops recoursion.