[ZabbixAPIEmulator] Don't call erase() against empty string