fix ZK-1791 @global-command does not provide predefined "event" variable
Fix Bug B60-ZK-1784: client rod with hflex cause js error