add code to prevent double popup error when canceling send invite confirm - fixes #762

When you invite people and add email addresses then click 'invite' you are asked to confirm. If you choose cancel you are told there is a form error.

- add method to display error if no emails are provided (this has somehow been removed)
- prevent default instead of returning false