Express/connect middleware to handle errors where an expected header is missing