[composer] Fix crash when loading project