VE-1469: Bugfix. Code for hiding template page definitely should be outs...

...ide of the loop over parameters (think of case when there are no parameters)