Fix upload_object_via_stream method in the Atmos driver. Contributed by Benno Rice, part of LIBCLOUD-228.