Add negative total validation before saving. Bug 24512