ERP5Type/patches: prepare for removal of Products.DCWorkflowGraph

Supports the case where Products.DCWorkflowGraph is not present.
Even though we are removing Products.DCWorkflowGraph from the
software release, we don't remove this monkey patch yet, because
this monkey patch also fixed a severe security issue. We keep the
patch for the cases where a recent ERP5 runs on an old SlapOS where
the product is still there.

This change just moves the existing code in a try/except ImportError
block
5 jobs for for_testrunner_2 in 0 seconds
Status Job ID Name Coverage
  External
passed ERP5.CodingStyleTest-Master

00:46:34

passed ERP5.PerformanceTest-Master

00:27:11

failed ERP5.UnitTest-Master

01:17:27

passed SlapOS.Eggs.UnitTest-Master.Python2

00:23:02

passed SlapOS.Eggs.UnitTest-Master.Python3

00:14:21