NailPolish.SubviewManager = {
  renderEach: function (subviews) {
    this._subviews = subviews;
    _.each(subviews, function (view) {
      view.parent = view.parent || this.defaultParent();
      view.repository = view.repository || this.repository;
      view.render();
    }.bind(this));
  },

  remove: function() {
    this.removeSelf();

    _.each(this._subviews, function(subview) {
      subview.remove();
    });
  },

  removeSelf: function() { /* override me */ },
  defaultParent: function() { return this },
};
NailPolish.SubviewManager = {
  renderEach: function (subviews) {
    this._subviews = subviews;

    _.each(subviews, function (view) {
      if(view) {
        view.parent = view.parent || this.defaultParent();
        view.repository = view.repository || this.repository;
        view.render();
      }
    }.bind(this));
  },

  remove: function() {
    this.removeSelf();

    _.each(this._subviews, function(subview) {
      if (subview){ 
        subview.remove();
      }
    });
  },

  removeSelf: function() { /* override me */ },
  defaultParent: function() { 
    return this; 
  }
};
Add a gaurd clause for IE8 compatibility in subview rendering
Add a gaurd clause for IE8 compatibility in subview rendering
