Extract code responsible of restoring collapsed tasks into a new method.
Avoid startup failures due to invalid value in collapsed_tasks option.
Merge pull request #8 from rivaldi8/bugfix-lp1280683

Fix bug lp #1280683 Startup crash with wrong value in collapsed_tasks option