Fixed NoneType error in templatetags

Fixed NoneType error coming from display_drilldown_as_ul.