Added error handling for post update function #2

*If the bot encounters 404 when trying to get the last page, it will go
up every page until it finds one.
*If the entire first page is stickied, the bot will select the recent
post from the next page and so on.