KpiQueryRegisterService : check if the formula is valid before evaluating and registering kpi (to avoid crashes with old kpis)