Handle settings uids and gids that don't resolve.

Remove old debugging
Merge pull request #11888 from cachedout/11874

Handle settings uids and gids that don't resolve.