Revit.pick_linked() and revit.pick_linkeds() return None and list with None

revit.pick_linked() returns None.
revit.pick_linkeds() returns a list with None objects by the number of selected elements from the link.

Checked on pure Revit API - the code works correctly:

from Autodesk.Revit.UI.Selection import ObjectType
elem = uidoc.Selection.PickObject(ObjectType.LinkedElement)
print(doc.GetElement(elem.ElementId))

Tests were performed on pyRevit 4.8.16, 5.0.0.25015. The result is the same.