[Error] 
Call to a member function IsAuthorized() on string (0)
/home/bitrix/www/bitrix/php_interface/include/functions.php:896
#0: Handlers::onBeforeIBlockElement(array)
	/home/bitrix/www/bitrix/php_interface/include/functions.php:871
#1: Handlers::onBeforeIBlockElementU(array)
	/home/bitrix/www/bitrix/modules/main/classes/general/module.php:475
#2: ExecuteModuleEventEx(array, array)
	/home/bitrix/www/bitrix/modules/iblock/classes/general/iblockelement.php:4485
#3: CAllIBlockElement->CheckFields(array, integer, boolean)
	/home/bitrix/www/bitrix/modules/iblock/classes/mysql/iblockelement.php:1252
#4: CIBlockElement->Update(integer, array)
	/home/bitrix/www/bitrix/php_interface/include/agents.php:146
#5: DG_Agents::Ankets_DeleteNotActual()
	/home/bitrix/www/bitrix/modules/main/classes/mysql/agent.php(161) : eval()'d code:1
#6: eval
	/home/bitrix/www/bitrix/modules/main/classes/mysql/agent.php:161
#7: CAgent::ExecuteAgents(string)
	/home/bitrix/www/bitrix/modules/main/classes/mysql/agent.php:38
#8: CAgent::CheckAgents()
	/home/bitrix/www/bitrix/modules/main/include.php:271
#9: require_once(string)
	/home/bitrix/www/bitrix/modules/main/include/prolog_before.php:14
#10: require_once(string)
	/home/bitrix/www/bitrix/modules/main/include/prolog.php:10
#11: require_once(string)
	/home/bitrix/www/bitrix/header.php:3
#12: require(string)
	/home/bitrix/www/index.php:2
#13: include_once(string)
	/home/bitrix/www/include/my_urlrewrite.php:165
#14: include_once(string)
	/home/bitrix/www/404.php:2
#15: include_once(string)
	/home/bitrix/www/bitrix/urlrewrite.php:4