check if show_sort_and_per_page? returns true before displaying content

Check if there are any results to display before rendering the view type widget content, as done in ```app/views/catalog/_per_page_widget.html.erb``` and ```_sort_widget.html.erb```.