calc_retry_wait is broken if Integer is used for retry_wait

From v0.10.58 or later and v0.12, calc_retry_wait causes an exception if Integer is used for retry_wait.
retry_wait is `time` type, so it can be Integer value. `#finite?` is a method for Float class, not for Integer.