Fixed a crash when restoring the saved instance state in CollectionActivity.