Nil panic when working on a theme with pagination

Found it, I was calling .Paginator.Next.PageNumber twice