Update Template.php

Extensions without parameter not processed inside extensions