boltdb/bolt — pull request #64 by benbjohnson (2014-03-13 20:42:16+00:00)
Title: Fix Cursor.Last() on empty buckets.

@tv42 reported that creating a cursor on an empty bucket and then calling
Cursor.Last() causes an index out of range error and panics. This commit
adds a check for the page's item count being greater than zero.

Fixes #63.