Around the line 401 in the function responsible for getting the addresses for the iMessage a check is failed if the madrid_flags is different from the tested values, making the return of the function faulty as the variables are not initialized.
The code for this type of iMessage is 102405, I will submit a patch once it works for me. I have to probably look into how the recipients are retrieved from the item, so that the multiple recipients are correctly handled.