added two lines to deal with queries about attributes that are not
present in the tree. In that case the ADTree responds 0 counts