Fixing IndexError when a comments page is empty