This change fixes a regression in the password manager that disallowed the use of empty username or password as required by some self-hosted repositories. Relates-to: #9079 #2538