Correct calls to stats fetching to match changes made in OpenSim master.