CRM-13552 add a smarty error if there is a crm error in {crmAPI}