Catch the case where a user has no uid

On some production systems we seem to have directadmin users without
corresponding /etc/passwd entry. While this is an error, we make this script
more robust by catching this case.