Ensure page title filter is not applied outside main loop.

fixes gh-275