.Paginate dies hard on section spelling errors

I’m running 0.13 on a Mac. When I ran with the following in my layouts/index.html:

  {{ $paginator := .Paginate (where .Data.Pages "Section" "post") }}

The paginator worked as expected:

$ hugo server --watch

INFO: 2015/03/11 Using config file: config.toml
INFO: 2015/03/11 syncing from /Users/quoha/Data/Sites/mdhender.com/themes/sshq/static to /Users/quoha/Data/Sites/mdhender.com/public/
INFO: 2015/03/11 syncing from /Users/quoha/Data/Sites/mdhender.com/static/ to /Users/quoha/Data/Sites/mdhender.com/public/
INFO: 2015/03/11 found taxonomies: map[string]string{"tag":"tags", "category":"categories"}
ERROR: 2015/03/11 Unable to render [top/li.html _default/li.html theme/top/li.html theme/_default/li.html]
ERROR: 2015/03/11 Expecting to find a template in either the theme/layouts or /layouts in one of the following relative locations [top/li.html _default/li.html theme/top/li.html theme/_default/li.html]
WARN: 2015/03/11 Unable to locate layout for 404 page: [404.html theme/404.html]
0 draft content 
0 future content 
19 pages created 
2 paginator pages created 
13 tags created
5 categories created
in 64 ms

The error about the missing top/li.html is correct since I’m in the middle of adding that.

But, when I misspell the section name, the result is a heck of long failure stack:

  {{ $paginator := .Paginate (where .Data.Pages "Section" "postit") }}
$ hugo server --watch

INFO: 2015/03/11 Using config file: config.toml
INFO: 2015/03/11 syncing from /Users/quoha/Data/Sites/mdhender.com/themes/sshq/static to /Users/quoha/Data/Sites/mdhender.com/public/
INFO: 2015/03/11 syncing from /Users/quoha/Data/Sites/mdhender.com/static/ to /Users/quoha/Data/Sites/mdhender.com/public/
INFO: 2015/03/11 found taxonomies: map[string]string{"tag":"tags", "category":"categories"}
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
	panic: runtime error: invalid memory address or nil pointer dereference [recovered]
	panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x0 pc=0x7d1a5]

goroutine 1 [running]:
text/template.errRecover(0xc2085471d8)
	/usr/local/Cellar/go/1.4.2/libexec/src/text/template/exec.go:100 +0xbc
text/template.errRecover(0xc208546070)
	/usr/local/Cellar/go/1.4.2/libexec/src/text/template/exec.go:100 +0xbc
github.com/spf13/hugo/hugolib.(*pager).HasPrev(0x0, 0x0)
	/Users/quoha/go/src/github.com/spf13/hugo/hugolib/pagination.go:65 +0x5
reflect.Value.call(0x633980, 0x0, 0x513, 0x663a70, 0x4, 0x999c48, 0x0, 0x0, 0x0, 0x0, ...)
	/usr/local/Cellar/go/1.4.2/libexec/src/reflect/value.go:419 +0x10e5
reflect.Value.Call(0x633980, 0x0, 0x513, 0x999c48, 0x0, 0x0, 0x0, 0x0, 0x0)
	/usr/local/Cellar/go/1.4.2/libexec/src/reflect/value.go:296 +0xbc
text/template.(*state).evalCall(0xc2081592c0, 0x633980, 0x0, 0x16, 0x633980, 0x0, 0x513, 0xa9d368, 0xc2080fa840, 0xc20800c30d, ...)
	/usr/local/Cellar/go/1.4.2/libexec/src/text/template/exec.go:567 +0xaa4
text/template.(*state).evalField(0xc2081592c0, 0x633980, 0x0, 0x16, 0xc20800c30d, 0x7, 0xa9d368, 0xc2080fa840, 0xc20819c290, 0x1, ...)
	/usr/local/Cellar/go/1.4.2/libexec/src/text/template/exec.go:478 +0x34b
text/template.(*state).evalFieldChain(0xc2081592c0, 0x633980, 0x0, 0x16, 0x633980, 0x0, 0x16, 0xa9d368, 0xc2080fa840, 0xc20819c280, ...)
	/usr/local/Cellar/go/1.4.2/libexec/src/text/template/exec.go:449 +0x2ad
text/template.(*state).evalFieldNode(0xc2081592c0, 0x633980, 0x0, 0x16, 0xc2080fa840, 0xc20819c290, 0x1, 0x1, 0x0, 0x0, ...)
	/usr/local/Cellar/go/1.4.2/libexec/src/text/template/exec.go:416 +0x1e6
text/template.(*state).evalCommand(0xc2081592c0, 0x633980, 0x0, 0x16, 0xc2080fa810, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
	/usr/local/Cellar/go/1.4.2/libexec/src/text/template/exec.go:354 +0xb39
text/template.(*state).evalPipeline(0xc2081592c0, 0x633980, 0x0, 0x16, 0xc208163b30, 0x0, 0x0, 0x0)
	/usr/local/Cellar/go/1.4.2/libexec/src/text/template/exec.go:332 +0x1a8
text/template.(*state).walkIfOrWith(0xc2081592c0, 0xa, 0x633980, 0x0, 0x16, 0xc208163b30, 0xc2080fa870, 0x0)
	/usr/local/Cellar/go/1.4.2/libexec/src/text/template/exec.go:196 +0xa8
text/template.(*state).walk(0xc2081592c0, 0x633980, 0x0, 0x16, 0xaa50c8, 0xc208199b00)
	/usr/local/Cellar/go/1.4.2/libexec/src/text/template/exec.go:172 +0x616
text/template.(*state).walk(0xc2081592c0, 0x633980, 0x0, 0x16, 0xab3b58, 0xc2080fa7b0)
	/usr/local/Cellar/go/1.4.2/libexec/src/text/template/exec.go:175 +0x862
text/template.(*Template).Execute(0xc208199a00, 0xa9d5e0, 0xc20807f340, 0x633980, 0x0, 0x0, 0x0)
	/usr/local/Cellar/go/1.4.2/libexec/src/text/template/exec.go:155 +0x3f2
html/template.(*Template).ExecuteTemplate(0xc2080374c0, 0xa9d5e0, 0xc20807f340, 0xc208264480, 0x1e, 0x633980, 0x0, 0x0, 0x0)
	/usr/local/Cellar/go/1.4.2/libexec/src/html/template/template.go:92 +0xc0
github.com/spf13/hugo/tpl.ExecuteTemplate(0x633980, 0x0, 0xc20807f340, 0xc208264440, 0x2, 0x2)
	/Users/quoha/go/src/github.com/spf13/hugo/tpl/template.go:1118 +0x1d6
github.com/spf13/hugo/tpl.ExecuteTemplateToHTML(0x633980, 0x0, 0xc208264440, 0x2, 0x2, 0x0, 0x0)
	/Users/quoha/go/src/github.com/spf13/hugo/tpl/template.go:1135 +0xaa
github.com/spf13/hugo/tpl.Partial(0xc20818e496, 0xf, 0xc208263430, 0x1, 0x1, 0x0, 0x0)
	/Users/quoha/go/src/github.com/spf13/hugo/tpl/template.go:1104 +0x260
reflect.Value.call(0x54e9c0, 0x7ab630, 0x13, 0x663a70, 0x4, 0xc208459b00, 0x2, 0x2, 0x0, 0x0, ...)
	/usr/local/Cellar/go/1.4.2/libexec/src/reflect/value.go:419 +0x10e5
reflect.Value.Call(0x54e9c0, 0x7ab630, 0x13, 0xc208459ad0, 0x2, 0x2, 0x0, 0x0, 0x0)
	/usr/local/Cellar/go/1.4.2/libexec/src/reflect/value.go:296 +0xbc
text/template.(*state).evalCall(0xc208158400, 0x6317c0, 0xc2085db680, 0x16, 0x54e9c0, 0x7ab630, 0x13, 0xab3be8, 0xc20819a210, 0xc20818e48d, ...)
	/usr/local/Cellar/go/1.4.2/libexec/src/text/template/exec.go:567 +0xaa4
text/template.(*state).evalFunction(0xc208158400, 0x6317c0, 0xc2085db680, 0x16, 0xc20819a240, 0xab3be8, 0xc20819a210, 0xc208160040, 0x3, 0x4, ...)
	/usr/local/Cellar/go/1.4.2/libexec/src/text/template/exec.go:459 +0x33b
text/template.(*state).evalCommand(0xc208158400, 0x6317c0, 0xc2085db680, 0x16, 0xc20819a210, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
	/usr/local/Cellar/go/1.4.2/libexec/src/text/template/exec.go:359 +0x210
text/template.(*state).evalPipeline(0xc208158400, 0x6317c0, 0xc2085db680, 0x16, 0xc20802e320, 0x0, 0x0, 0x0)
	/usr/local/Cellar/go/1.4.2/libexec/src/text/template/exec.go:332 +0x1a8
text/template.(*state).walk(0xc208158400, 0x6317c0, 0xc2085db680, 0x16, 0xa9d3b0, 0xc2080ba060)
	/usr/local/Cellar/go/1.4.2/libexec/src/text/template/exec.go:167 +0x145
text/template.(*state).walk(0xc208158400, 0x6317c0, 0xc2085db680, 0x16, 0xab3b58, 0xc208181ad0)
	/usr/local/Cellar/go/1.4.2/libexec/src/text/template/exec.go:175 +0x862
text/template.(*Template).Execute(0xc20814fd80, 0xa9d5e0, 0xc2085a31f0, 0x6317c0, 0xc2085db680, 0x0, 0x0)
	/usr/local/Cellar/go/1.4.2/libexec/src/text/template/exec.go:155 +0x3f2
html/template.(*Template).ExecuteTemplate(0xc2080374c0, 0xa9d5e0, 0xc2085a31f0, 0xc208293b40, 0x10, 0x6317c0, 0xc2085db680, 0x0, 0x0)
	/usr/local/Cellar/go/1.4.2/libexec/src/html/template/template.go:92 +0xc0
github.com/spf13/hugo/hugolib.(*Site).renderThing(0xc2080d4000, 0x6317c0, 0xc2085db680, 0xc208293b40, 0x10, 0xa9d5e0, 0xc2085a31f0, 0x0, 0x0)
	/Users/quoha/go/src/github.com/spf13/hugo/hugolib/site.go:1449 +0x210
github.com/spf13/hugo/hugolib.(*Site).render(0xc2080d4000, 0x6a7490, 0x8, 0x6317c0, 0xc2085db680, 0xc2085a31f0, 0xc2083c7a80, 0x6, 0x8, 0x0, ...)
	/Users/quoha/go/src/github.com/spf13/hugo/hugolib/site.go:1424 +0x2c0
github.com/spf13/hugo/hugolib.(*Site).renderAndWritePage(0xc2080d4000, 0x6a7490, 0x8, 0x661510, 0x1, 0x6317c0, 0xc2085db680, 0xc2083c7a80, 0x6, 0x8, ...)
	/Users/quoha/go/src/github.com/spf13/hugo/hugolib/site.go:1387 +0xdf
github.com/spf13/hugo/hugolib.(*Site).RenderHomePage(0xc2080d4000, 0x0, 0x0)
	/Users/quoha/go/src/github.com/spf13/hugo/hugolib/site.go:1201 +0x178
github.com/spf13/hugo/hugolib.(*Site).Render(0xc2080d4000, 0x0, 0x0)
	/Users/quoha/go/src/github.com/spf13/hugo/hugolib/site.go:395 +0x1a1
github.com/spf13/hugo/hugolib.(*Site).Build(0xc2080d4000, 0x0, 0x0)
	/Users/quoha/go/src/github.com/spf13/hugo/hugolib/site.go:244 +0x84
github.com/spf13/hugo/commands.buildSite(0xc208547a27, 0x1, 0x1, 0x0, 0x0)
	/Users/quoha/go/src/github.com/spf13/hugo/commands/hugo.go:342 +0xd2
github.com/spf13/hugo/commands.build(0xc208547b5e, 0x1, 0x1)
	/Users/quoha/go/src/github.com/spf13/hugo/commands/hugo.go:254 +0x2cb
github.com/spf13/hugo/commands.server(0x98a8e0, 0xc208036240, 0x0, 0x4)
	/Users/quoha/go/src/github.com/spf13/hugo/commands/server.go:97 +0x58a
github.com/spf13/cobra.(*Command).execute(0x98a8e0, 0xc208036200, 0x4, 0x4, 0x0, 0x0)
	/Users/quoha/go/src/github.com/spf13/cobra/command.go:399 +0x38d
github.com/spf13/cobra.(*Command).findAndExecute(0x989da0, 0xc20800a010, 0x5, 0x5, 0x0, 0x0)
	/Users/quoha/go/src/github.com/spf13/cobra/command.go:366 +0xd4
github.com/spf13/cobra.(*Command).Execute(0x989da0, 0x0, 0x0)
	/Users/quoha/go/src/github.com/spf13/cobra/command.go:452 +0xab3
github.com/spf13/hugo/commands.Execute()
	/Users/quoha/go/src/github.com/spf13/hugo/commands/hugo.go:64 +0x2f
main.main()
	/Users/quoha/go/src/github.com/spf13/hugo/main.go:24 +0x2f

I think this was fixed in