Scan crashes when last scanned photo is deleted
When the last post containing the last photo is deleted, the scan cannot proceed as the url pointing to this post is no longer existing (http error 404). The fix is going through all the thread photos backwards until it reaches a photo still present in the thread.