Ignore empty list items. JS refactor to pass JSLint.