FELIX 4800 Fix 405 error when filter results in empty table.


git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1660639 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/webconsole/src/main/resources/res/ui/bundles.js b/webconsole/src/main/resources/res/ui/bundles.js
index 1a671e4..0ff8d5b 100644
--- a/webconsole/src/main/resources/res/ui/bundles.js
+++ b/webconsole/src/main/resources/res/ui/bundles.js
@@ -60,7 +60,7 @@
     initStaticWidgets();
 
 	var cv = getCookie("bundlelist");
-	if (cv) {
+	if (cv && bundlesTable.find("tr").size() > 1) {
 	    bundlesTable.trigger('sorton', [cv]);
 	}