Fixed crash when s3 bucket did not exist for put operation