Fix username handling on Special:Uploads

In addition to crashing on invalid usernames, it also asks you to login
if you request uploads for a nonexistent user.

Bug: 65094
Change-Id: I0e1ae9cbe2c42757a420312559eeca3e6c4c24db
Merge "Fix username handling on Special:Uploads"