Issue/9972 Fix issues with group and username `0`

Fix #9972 

@schiesbn @blizzz