Finite energy for a gravitational potential falling slower than 1/r