EZP-21913: Fixed globals usage in ezasynchronouspublisher.php