fix web user invitations
Merge pull request #742 from dimagi/case-54723

fix web user invitations (Case:54723)