Unit aggregation can accidentally start immediately
If the last time step for the efficiency level just before aggregation should start is not defined (or it is outside the model horizon), p_unit(unit, 'lastStepNotAggregated') becomes zero and aggregation starts immediately.