Handle settings uids and gids that don't resolve.

Closes #11874