[PATCH v2] Task: HostAPI fix creation of InterfaceAPI objects