Fixed problem with population when fixtures not loaded

Did the previous version actually work for you?

I had to go in and fix the check for whether data is loaded in the beginning of population.
To do so, I had to take out the actual population code in a separate function.

Hope you will accept the PR and update the NPM version.