Fix for project generation not working correctly on a project with no sources