Fix logical condition which was breaking useradd.

I believe this is the correct fix for issue #7690.