Item13038: fixed creating a new extension

... when using a custom template