Fix channel naming NPE when no $.jstree. Reported in PR 606