Don't pry for user details if there was no user found

We were hitting an issue when parsing slurm logs with unresolved uid/gids.
This fixes it.