Fix bug in smart_404 context processor.