Small modifications to use plot.current_tree and work for treeless plots

Also adds tests
Don't show ecobenefits sections if there are no ecobenefits