Fix crash on adding collect objective (fixes #308)