Now copes with the fact that group ids are optional in a gav.