FIX: make sections optional

FIX: make sections optional

Previously, the footer would not render if one of the link sections was left empty. This commit makes possible to leave one or more sections empty without affecting the rest.

diff --git a/javascripts/discourse/connectors/below-footer/custom-footer.js.es6 b/javascripts/discourse/connectors/below-footer/custom-footer.js.es6
index 06c6a90..ce10ce4 100644
--- a/javascripts/discourse/connectors/below-footer/custom-footer.js.es6
+++ b/javascripts/discourse/connectors/below-footer/custom-footer.js.es6
@@ -6,10 +6,10 @@ const getClassName = text => {
 export default {
   setupComponent(args, component) {
     try {
-      const splitLinkSections = settings.Link_sections.split("|");
-      const splitLinks = settings.Links.split("|");
-      const splitSmallLinks = settings.Small_links.split("|");
-      const splitSocialLinks = settings.Social_links.split("|");
+      const splitLinkSections = settings.Link_sections.split("|").filter(Boolean);
+      const splitLinks = settings.Links.split("|").filter(Boolean);
+      const splitSmallLinks = settings.Small_links.split("|").filter(Boolean);
+      const splitSocialLinks = settings.Social_links.split("|").filter(Boolean);
 
       const linkArray = [];
       const sectionsArray = [];

GitHub sha: dc29bdf1ec3e67f26eba2f8ec0cdefedb7a2c697