Setting empty password causes exception. This change allows a password to be left unset.