Bug 3373: Avoid division by zero

This bug is hardly reproducible.

http://dev.kohanaframework.org/issues/3373