[#2222] make the parseUsername function set empty strings on failure