The impact of energy conservation in transport models on the π−/π+ multiplicity ratio in heavy-ion collisions and the symmetry energy