Handling invitations which match current accounts

I just tested this locally and found out that this was happening for me. Then I enabled the setting must approve users and tested again, and the invitation was not redeemed.

So the invitation is not getting redeemed when the site setting must approve users is enabled. Added this on my to-do list.