Issue #11529: Prevent copying tool-based NDE filters
This patch attempts to resolve #11529 (closed).
Note that in addition to what @pixelmixer wrote, you can also cause this crash by copying a layer with Warp or Gradient filters active (but not yet committed). This patch should fix that as well.