Fix an authentication exception when password is not provided