fix NoneType error

Check to make sure user and domain aren't None
Merge pull request #5355 from UtahDave/fix_win_status

fix NoneType error