Fix crash in select intervals in PfPvPlot

.. we delete the curves after they are detached which
   causes a SEGV as they are already deleted.