Fix module group accessor for resolved artifacts

This fixes an error with Gradle 2.+.