Hi Peter and Brenden .. Thanks for your quick reply ..
Yeah macro is returning empty string .. so, i changed the check to
Code {% !IfEmpty(custommacro.GetWorkerID()) |(identity)GlobalAdministrator%}
but still expression is throwing error message in the event log
Error while evaluating expression: custommacro.GetPollWorkerID() |(user)sxzza|(hash)ef529c5cb5ebed31ae33b87a44789a8a4f60edf643ae3f3fe4e6e3f91e1339f6
System.InvalidOperationException: Sequence contains no elements