Made more robust to deleted photos/photosets