Fix bug where aggregation would fail on null-state vertices