fixed missing </ul> tag in sidebar

fixed missing </ul> tag in sidebar when {% if DISPLAY_CATEGORIES_ON_SIDEBAR %} was set