made the sidebar correctly display the alphabetical index when the search results only shows one result