cgroups: Handle nil repo
If a command's repo is nil, handle it gracefully by adding the command to a cgroup by using the command arguments as a key for the circular hash.
While we're at it, fix a test that was doing the checksum incorrectly. This didn't make a difference in the test however, because we were using the groupID we calculated ourselves to check for the location of the cgroup file.
Changelog: fixed