erp5_hal_json_style: check if isWebMode is present before calling it.