fix usage of "if(tree) {" to display the right things, even if no coloring rule is set