tree: Fix another problem area for the query property; refs #440