sidebar.c: Issue to access last sidebar element with search/open fixed.