Fix crash when list activity is recreated (fixes #1)