Fix for bug #21720 (https://gna.org/bugs/?21720).
This is the faulty pipe switching behaviour when a non-last analysis tab is deleted in the GUI. Now the correct data pipe should be always switched to when closing an analysis tab.
Authored by: bugman 2014-02-24
Parent: [r22263]
Child: [r22265]