Prevent divide by zero when the elapsed time is too small.