CRM-12257

fix for failing message template delete