Fix handling of negative deltas for non-counter values.

The delta() counter reset correction was always applied, even when the counter argument
was set to 0.