diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/util/Util.js b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/util/Util.js
index 8086d406a9bfaf7d9d3970567484057dcdb4a4dd..e18a52db3f5e9bdd69a226a4d90297635a2836e9 100644
--- a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/util/Util.js
+++ b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/util/Util.js
@@ -769,7 +769,8 @@ var Util = new function() {
     
     this.elementEndsWithArrayElement = function(element, elementsToEndWith) {
     		for(var aIdx = 0; aIdx < elementsToEndWith.length; aIdx++) {
-    			if(element.endsWith(elementsToEndWith[aIdx])) {
+    		    var elementToEndWith = elementsToEndWith[aIdx];
+    			if((typeof elementToEndWith === 'string' || elementToEndWith instanceof String) && element.endsWith(elementToEndWith)) {
     				return true;
     			}
     		}