Fixed bug in get_root_categories and product render #3377

* Fixed domain expression inside get_root_categories
* Product render method handles optional path arguement

Review ID: 1483002