BS-7479 : org.bonitasoft.engine.expression.exception.SInvalidExpressionException

- Fix bug when refactoring the code