If a node was closed in the hierarchy, we would only copy that node,
even if child nodes were selected.
This restriction seems intentional, but it's unclear why. The most
intuitive behavior is to copy all items selected, regardless of whether
the node is collapsed.
By removing the if condition, we always recurse, grabbing anything the
user has selected for the copy. This method doesn't appear to be used
anywhere else so I don't think this would have any unintended consequences.
I believe another potential solution would be to set the
space_outliner->search_flags to include SO_SEARCH_RECURSIVE, as the
TSELEM_OPEN macro checks this, but given that I'm not as familiar with
the code base, I went for the more straightforward approach.