Fixed the retry decrement issue.

Moved the retry decrement inside the done-check block for
streaming ops