fix remove handler to also delete references to existing models

The backgrid-select-all extension was removing references to unsaved models but not saved models. This fixes the issue by checking for model.id instead of just model.cid:


      this.listenTo(collection, "remove", function (model) {
        delete selectedModels[model.id || model.cid];
      });