fixed issue where deleting empty group tries to send email