BugFix: Do not break if username (loginname) is passed as userid.

Background: Plone sometimes treats username as userid, but it's
possible that the username (loginname) differes from the userid. 
For example plone.discussion is bugy until 2.3.2, it passes the username as userid, which is completly wrong.