Throw an exception if the input stream fails to get the object

If the `GetObjectRequest` fails for whatever reason, we'll get a `NullPointerException` when trying to use the input stream.