fix fatal error when usernameToUser is empty
quick fix for encoded usernames