execute RegisterFormulaCommand BEFORE adding the formula to the set of
registered formulas. In that case a possible exception is thrown before
adding it to this set
improved register formula mechanism - dynamically adding formulas, for
instance via a groovy script is now working.