Merge pull request #5446 from RosettaCommons/roccomoretti/interactive_fix_puzzle_setup_crash
[ Foldit ] Hotfix segfault in puzzle setup
With my recent changes, I was effectively modifying a container while iterating over it, which can lead to memory corruption. This didn't show up on my machine, but was causing crashes on some players machines when they accessed the tutorial levels.
This correct that. It also addresses several uninitialized variable issues which Valgrind noticed while I was debugging the crash.