Rescue if IO throws exception on attempted #rewind

This will permit the passing in of pipes, sockets, or other IO objects that
throw exceptions when you call the #rewind method.
Merge pull request #3246 from giddie/glacier-pipe-data

Don't attempt to rewind IO if it's not offset