Return NaN if denominator is 0 in proportion_of_energy() and proportion_of_energy_submetered()