fixed a bug that would cause program termination

The bug would cause the program to execute if there were no more images on a subreddit. the program would only work if a date after the subreddit's creation was used. This problem will no longer occur.