fix Client password() bug

Wrap the password check with isset.