diff --git a/plugins/cleanupListOfValues.js b/plugins/cleanupListOfValues.js
index 461a2bcf..e4aa980a 100644
--- a/plugins/cleanupListOfValues.js
+++ b/plugins/cleanupListOfValues.js
@@ -125,7 +125,7 @@ exports.fn = function(item, params) {
// if attribute value is "new"(only enable-background).
else if (matchNew) {
roundedListArr.push('new');
- } else {
+ } else if (elem) {
roundedListArr.push(elem);
}
diff --git a/test/plugins/cleanupListOfValues.02.svg b/test/plugins/cleanupListOfValues.02.svg
index e16dc90a..27d203aa 100644
--- a/test/plugins/cleanupListOfValues.02.svg
+++ b/test/plugins/cleanupListOfValues.02.svg
@@ -1,6 +1,10 @@
@@@
@@ -8,4 +12,8 @@