[JS API] Fix inference for outputs with missing names (#28665)
### Details:
- `Output.getAnyName()` returns the unique name of the node if the
tensor has no name.
- The unique name is also used in `InferRequest.infer(...)` to get the
result if the tensor has no name.
### Tickets:
- CVS-155526
---------
Signed-off-by: Kirill Suvorov <kirill.suvorov@intel.com>