only send an email with nonempty to address

Fix for issue #162 found by @gavinwahl in which EmailSuccessHandler attempts to send an email without a to email address.