Ensure error estimate values are positive

This should really be calculated based on the inverse of the covariance matrix, but the current approach is conservative.