prevents game from crashing when you exit a level while picking somethin...

...g up.

fixes #1202