Adding null check to can.Control.prototype.destroy