The workaround provided to the customer is to run the following command following each update to make the required changes to the mail_report.php script.
sed -i "s#mail(''#mail(\$to#g; s#\$email .= 'To:#// \$email .= 'To:#g" /usr/bp/bin/mail_report.php