diff --git a/themes/bootstrap3/js/account_ajax.js b/themes/bootstrap3/js/account_ajax.js
index ef644751468946656add9df7b72f0b12d2f5af61..76d069e94c58e19fa929a6653abf03c523da357c 100644
--- a/themes/bootstrap3/js/account_ajax.js
+++ b/themes/bootstrap3/js/account_ajax.js
@@ -130,7 +130,7 @@ VuFind.register('account', function Account() {
       _submodules[name] = typeof module == 'function' ? module() : module;
     }
     var $el = $(_submodules[name].selector);
-    if ($el) {
+    if ($el.length > 0) {
       $el.removeClass("hidden");
       _statuses[name] = LOADING;
       _load(name);