Fix tree javascript for inboxes.

An empty js-selector evaluates to true as well. doh.
Merge pull request #570 from 4teamwork/deif-fix-inbox-tree

Fix tree javascript for inboxes.