If contains is nothing, return a regular tree list.
Moving all tree list functionality to list_trees_containing_taxa to avoid code duplication.