ui: Remove empty links in footer

When disabling live statistics and/or question proposals, leftover pipe signs ('|') appeared in the footer page. This patch checks whether footer links were actual strings and if not (i.e. the links are empty strings) removes them from the footer.