You know, there are other sources of energy.
Fossil fuels are simply the first ones discovered because they're really really easy to use. You just basically set them on fire.
Now, using this energy source and the advances that it has allowed we will progress to using more complicated but much more long-lasting sources of energy.
Don't worry, our population will keep going up.