Fixes #17184: Anonymous authentication to soap api.

Currently the soap api enables anonymous logins by passing in empty user name and password. However, authentication seems to fail when the anonymous user name is passed in with empty password. The authentication API should handle both cases without given access denied.