If there's an error, items won't be in the results. Be more careful.
Use a different variable for the modified result.
Fix broken search for logged in users. A leading slash will break
the Github Flask extension. So that's awesome.