Allow subclasses of PageMiddleware to be used in page view check.