luci-base: ui.js: tabs: fix empty pane checking, allow alternative query root