Log error message instead of throwing exception while sending mailing
For some reason if the mailing is stuck, we should log error message instead of throwing exception.
I recently encountered this This is caused by because the details for contact id [x] are not returned for tokens for some reason
CiviMail will not send an empty mail body, Skipping: firstname.lastname@example.org
All the required criteria are satisfied. It was strangely because of the limit of count passed to apiQuery which was 1 less than the contacts in the the query resulting in this unfortunate contact not getting any values and then causing the mailing job to fail. We should not have thrown the exception here.