Arrows in graph plugin disappear after opening debug plugin

Repro step:
- Open graph plugin: notice the arrows (they are there)
- Open debugger plugin. It does not have to be active. Just open it from the inactive plugin dropdown
- Open graph plugin again. Arrows should be gone.
Reproducible in 1.12 and 1.12.1
Does this happen outside the use of the debugger plugin?
To convey more information, this has to do with SVG <defs>. AFAICT, they need to be globally unique. Sadly two plugins, sharing some code, uses the same def ids and graph plugin seems to lose ability to refer to the def it created. But if my assertion is correct, it is odd that Chrome (different browsers behave differently in my past experience) does not use the newer instance of the definition (which should be exactly the same) when rendering the SVG in the graph plugin.
This bug is no longer reproducible under Polymer 2+ where we started to use ShadowDOM. With ShadowDOM, these svg defs are encapsulated inside shadow root and do not interfere with each other.