Skip dependency exclusions if groupId is null

Fixes gh-1133