Fix potential NPE in TileEnergyConverter