Fixed crash when getting new population

Did not clear the agent list when creating a new population