title: mongoose remove not working [findByIdAndRemove]
body: <p>I try to remove object by id , but get error "[TypeError: Cannot read property '$set' of undefined]" what can be wrong?</p>
  
  <pre><code>var remove = function(req, res, next) {
  
  var id = req.urlParams.id ;
  
  req.urlParams.model.findByIdAndRemove(id,function(err, doc){
  console.log(err);
  if (err) { return sendError(res,err) }
  
  var data = JSON.stringify(req.body);
  ...
  }
  </code></pre>
  
  <p>id is initialized and object with that id exist</p>