fix for api_version call on Zabbix 2.4

tested and shouldn't break 1.8, 2.0 or 2.2 compatibility