Fixed EnergyNetwork forgetting a null check