Fix for bug #22501 (https://gna.org/bugs/?22501), "Close all analyses" raises error in the GUI.
The problem was general for all analysis types. This used to work, but as it was not tested in the test suite, a regression occurred.
Authored by: bugman 2014-08-21
Parent: [r25184]
Child: [r25186]