Circumvent value checking on dates when newly created in VC builder

Change-Id: Idcf378960d863a3072213d7070c7ac75876438db
diff --git a/dev/js/src/menu.js b/dev/js/src/menu.js
index b2ec25b..9f3cf75 100644
--- a/dev/js/src/menu.js
+++ b/dev/js/src/menu.js
@@ -782,6 +782,8 @@
 
     // Set boundary for viewport
     _boundary : function (bool) {
+      if (this._list.length === 0)
+        return;
       this.item(this._list[0]).noMore(bool);
       this.item(this._list[this._list.length - 1]).noMore(bool);
     },