Fixing UserProfile for invalid usernames

Bug: 55601
Change-Id: I7986aa88ec82d64585ee43f715139f339039e3c5
Merge "Fixing UserProfile for invalid usernames"