find-defined-target: use target from node properties if metadata is -1
Currently, if the target.node
key from metadata is set to -1
, and the associated stream node has a valid target.node
property set, the
findDefinedTarget()
function returns nil
, which is wrong. This patch fixes this function to instead return the defined target from the stream node properties.