fix - exception handling and detection for cases when the flickr api call fails or returns no or a limited number of photos