Express/Connect middleware for early not found detection