Fix Invitations

no issue
- added `invited-pending` when resending invitation
- promise chain was missing a return statement
- email error was masked and front end showed success notification
Merge pull request #3444 from sebgie/fix-invitations

Fix Invitations