headless: Fixed bug when auto-importing 0.5 projects.