VE-1469: Bugfix. Code for hiding template page definitely should be outside of the loop over parameters (think of case when there are no parameters)
VE-1469: Bugfix. Clear falue of input fitler whenever dialog is open.
Merge pull request #4595 from Wikia/VE-1469-fix

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