Check if userName is set
Merge pull request #5428 from Wikia/HG-381

HG-381: Check if userName is set