diff --git a/sites/all/modules/contrib/dhtml_menu/dhtml_menu.js b/sites/all/modules/contrib/dhtml_menu/dhtml_menu.js
index 807c862..7d0e644 100644
--- a/sites/all/modules/contrib/dhtml_menu/dhtml_menu.js
+++ b/sites/all/modules/contrib/dhtml_menu/dhtml_menu.js
@@ -174,7 +174,7 @@ Drupal.behaviors.dhtmlMenu = {
     });
 
     // When using LTR, all icons can be shifted as one, as the text width is not relevant.
-    if (settings.nav == 'bullet' && !rtl) {
+    if (settings.nav == 'bullet' && !rtl && $('.menu li').length) {
       // Shift overlay to the left by the width of the icon and the distance between icon and text.
       var shift = '-' + (Math.ceil(($('.menu li').css('margin-left').replace('px', ''))) + 16) + 'px';
       // Shift the overlay using a negative left-hand offset, and the text using a negative right-hand margin.
