Hugo server: Error on pagination internal template

I see this error poping up often and on different projects when running hugo server since .55 and above. Wondering if this something known I did not catch in GitHub?

ERROR 2019/04/18 15:25:49 Failed to render pages: render of "section" failed: execute of template failed: template: _internal/pagination.html:2:13: executing "_internal/pagination.html" at <$pag.TotalPages>: error calling TotalPages: runtime error: invalid memory address or nil pointer dereference