diff --git a/frontend-js/src/main/js/gui/Panel.js b/frontend-js/src/main/js/gui/Panel.js
index c4fd1786b69d25393106452b42302af2791ffe52..8f21f244472e35c939fc871f140d85d0d38628e6 100644
--- a/frontend-js/src/main/js/gui/Panel.js
+++ b/frontend-js/src/main/js/gui/Panel.js
@@ -335,7 +335,10 @@ Panel.prototype.onresize = function () {
   var self = this;
   var footerPosition = window.innerHeight;
 
-  footerPosition -= Math.max(0, $(".minerva-logo-footer, .minerva-footer-table").outerHeight());
+  var footer =$(".minerva-logo-footer, .minerva-footer-table")
+  if (footer.length > 0) {
+    footerPosition -= Math.max(0, footer.outerHeight());
+  }
 
   // compute the width (we can only compute it for visible elements)
   var size = 100000;