Fix the pagination issue with up-and-coming themes (bug 944096)

Where is the magic™ here, I don't see it? :)