Fixed issue with instance creation when no templates are specified.