do not append default template extension if ext() is undefined or blank