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

Fixes https://bugs.launchpad.net/gtg/+bug/1280683