UI.Control: Fixed problem with possible infinite loop by auto-extention of included templates