The state’s grid operator warned of a possible energy emergency on the grid Tuesday. It said slightly warmer-than-expected weather was part of the problem, but it was really the fact that coal, gas and nuclear power were offline all at once.