Fix tree javascript for inboxes.

An empty js-selector evaluates to true as well. doh.