Patch node

If svg <defs> element does not exist, snap.svg throw null error and crash all javascript execution.

In this case, `p.select("defs")` return null but, in your code, you use `p.select("defs").node` directly without test if `p.select("defs")` return null.