fix check to use base64 encoding when CROSS_DOMAIN = 1

$response['mime'] is null when the conditional is run because a couple lines (line 634) above it $tmp = $response = null; sets $response to null.