getEntity fix with undefined entityId
local in node_utils