Ported from #2081: app.openDoc only queues Request::OpenDoc for the current document's
folder (the viewer asks first) and answers null; a Link event's target is the document;
a popup menu with no items answers null without asking.
Co-authored-by: LMatt08 <245691047+LMatt08@users.noreply.github.com>