Fixed broken product category and search page -  #5631

Made changes to render_product_list macro
in _helper.jinja. This macro was being called
for to render the listing on both the product-list
and search page.