Fixed nullpointer bug in EcoWorld when recording simulation.