[BZ-1056195] avoid to create an ArtifactResolver when the KieModule has no dependencies
(cherry picked from commit ff4f9415a57888841873f87d9704c070a375f982)