Fixes warning on empty photo sets