widgets: Check that effect has a parent to hide related effects keyframe

Avoiding backtrace when undo an effect adition while editing that
effect properties