[test] Avoid mod 0, resolve an exception like 'Floating point exception'.
[test] Avoid mod 0, resolve an exception like 'Floating point exception'.

'kMaxLimit' may be 0, then an exception reported like 'Floating point exception'.
Here we cannot mod 0, if 'KMaxLimit' is 0, we're not taking mod any
more, we set 'kLimit' to 0 directly.

Change-Id: Ia45372ff5e5460d220b7a3040de2e499541bf37f
Reviewed-on: http://gerrit.cloudera.org:8080/14793
Tested-by: Kudu Jenkins
Reviewed-by: Alexey Serbin <864f6b82bd94e8dda64141d4274519ee66e0102e@cloudera.com>
Reviewed-by: Grant Henke <4cf7ebbe638391c4d27a10cf751b99bdbd1a1880@apache.org>

helifu/kudu,helifu/kudu,helifu/kudu,helifu/kudu,helifu/kudu,helifu/kudu,helifu/kudu,helifu/kudu,helifu/kudu