Fix bug #1948 MailOnSuccess get executed on error.
Fix bug #1948 MailOnSuccess get executed on error.

MailOnSuccess running when Job is cancelled or ends with errors.

rkorzeniewski/bacula,rkorzeniewski/bacula,rkorzeniewski/bacula,rkorzeniewski/bacula,rkorzeniewski/bacula,rkorzeniewski/bacula,rkorzeniewski/bacula,rkorzeniewski/bacula