Fix retry count passed to the RetryPolicy (JAVA-460).