storage: fix retry in NewRangeReader on non-2xx responses
storage: fix retry in NewRangeReader on non-2xx responses

Original github PR by ains (Ainsley Escorce-Jones).

NewRangeReader currently doesn't retry on non-2xx responses.

It uses a the default HTTP client, and returns the error directly, not
wrapping non-2xx responses in "googleapi.Error", so runWithRetry will
not execute the block again.

This moves the code below upwards, so that errors are wrapped
correctly and runWithRetry will retry.

Change-Id: I15074ba7bcc5d3a64eaf4f458bb4f069c417ffdb
Reviewed-on: https://code-review.googlesource.com/10910
Reviewed-by: Jaana Burcu Dogan <347c19a639ce752a783b4ea325d6539ab4b4a262@google.com>

googleapis/google-cloud-go,googleapis/google-cloud-go,googleapis/google-cloud-go,googleapis/google-cloud-go