Allow handler404 to support class-based views