Check for app._router.stack also

Added a check for app._router.stack to support Express 4.x changes. Stack is now exposed to the class through `this.stack` along with error handling if the stack is not found.