InsertFeatureTreeFolder2 requires that you select a folder or component before you call it. If you have not selected something, nothing happens, no error, but also no folder is created.
Is there another way to create feature folders that works on empty assemblies?