Fixed a crash when collection had only one element without any photos.