Fix the logic so that when value is precisely zero it is still read in as long as its residual is not -1.
Fix the logic so that when value is precisely zero it is still read in as long as its residual is not -1.

opensim-org/opensim-core,opensim-org/opensim-core,opensim-org/opensim-core,opensim-org/opensim-core,opensim-org/opensim-core,opensim-org/opensim-core,opensim-org/opensim-core