Null packagegroup id shouldn't break things
Fix typo