[Frodo] [Backport] Fixed: do not send Range request header when encounter error.

backport of #2675