[ZabbixAPI] Add a check of return value.