small fixes to logic for skipping processed posts, as well as checking to make sure posts have been returned to avoid null and index out of range errors