Avoid bad values of stride.
Merge pull request #1583 from ktf/fix-division-by-zero-PerformanceDB

QA fixes -- Avoid bad values of stride.