fixes #1561
Merge pull request #1562 from loomio/fix-invite-when-logged-out

fixes #1561