erp5_base: Avoid calling non-workflow scripts on a workflow context.