Fix for: BHV-8308

Poor handling of xhr responses of binary content was causing exceptions to be thrown. Now we guard these scenarios consistent with other operations.