Add exception handlers to category and search pages (bug 868667)